package com.atguigu.mapper;

import com.atguigu.pojo.Emp;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: liuaojun
 * @CreateTime: 2025-02-05
 * @Description:
 * @Version: 1.0
 */
@Mapper
public interface EmpMapper {
    List<Emp> selectEmpByCondition(Emp emp);
    /**
    * @Author:liuaojun
    * @Date:2025-02-05 15:39
    * @Description:添加员工信息(测试foreach)
    */
    void insertEmp(List<Emp> empList);

    /**
    * @Author:liuaojun
    * @Date:2025-02-05 15:50
    * @Description:动态条件修改员工信息
    */
    void updateEmpByDynamicCondition(Emp emp);
    /**
    * @Author:liuaojun
    * @Date:2025-02-05 15:56
    * @Description:按条件查询员工信息(动态条件)
    */
    List<Emp> selectEmpByDynamicCondition(Emp emp);
    /**
    * @Author:liuaojun
    * @Date:2025-02-05 16:31
    * @Description:按条件查询员工信息(动态条件)
    */
    List<Emp> selectEmpByChoose(Emp emp);
}
